/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */

/* 
 * Hum -- The Low Calorie Music Manager
 * 
 * Copyright (C) 2007 by Brian Davis <brian.william.davis@gmail.com>
 *
 * This file is modifiable/redistributable under the terms of the GNU
 * General Public License.
 *
 * You should have recieved a copy of the GNU General Public License along
 * with this program; see the file COPYING. If not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 0211-1307, USA.
 */

#ifndef _HUM_PLAYER_H
#define _HUM_PLAYER_H

#include <gst/gst.h>
#include "hum_utils.h"

#ifdef __cplusplus
extern "C"
{
#endif

typedef struct {
	GstBus 				*bus;	
	GstElement 			*pipeline;	
	gchar				*uri;
	gboolean			playing;
} HumPlayer;

HumPlayer hum_player;

void hum_init_player ();
void hum_destroy_player ();

void hum_start_playback (gchar* uri);
void hum_pause_playback ();
void hum_resume_playback ();
void hum_stop_playback ();
void hum_seek_playback (gdouble fraction);

#ifdef __cplusplus
}
#endif

#endif /* _HUM_PLAYER_H */
